package com.example.myzhugezhaofang;

import com.example.myzhugezhaofang.bean.newhouse.CuTenTryTwoBean;
import com.example.myzhugezhaofang.bean.newhouse.HortBean;
import com.example.myzhugezhaofang.bean.newhouse.HouseListBean;
import com.example.myzhugezhaofang.bean.newhouse.SellTermBean;

import java.util.Map;

import io.reactivex.Flowable;
import retrofit2.http.FieldMap;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.POST;

/**
 * 作者：朱勇闯
 * data : 2021/3/29  15:22
 * 作用： xxxx
 */
public interface ApiService {
    /*String bannerBaseUrl = "https://api.zhuge.com/home/v1/Appindex/";
    String bannerBaseUrl2 = "https://api.zhuge.com/home/v1/Appindex/";
    //    口碑楼盘
    String baseHighOpinionUrl = "https://api.zhuge.com/home/v1/Appindex/";
    //    头条
    String headlines = "https://api.zhuge.com/home/v1/Appindex/";
    //    猜你喜欢
    String baseLikeUrl = "https://api.zhuge.com/home/v1/Appindex/";
    //    底部banner
    String baseBottomBannerUrl = "https://api.zhuge.com/home/v1/Appindex/";
    //诸葛找房北京站
    String baseKolimagesUrl = "https://api.zhuge.com/home/v1/Appindex/";
    String baseRecommendedUrl = "https://api.zhuge.com/";
    String baseAppNewsListUrl = "https://api.zhuge.com/";

    @POST("showBanner")
    @FormUrlEncoded
    Flowable<HomeBannerBean> getBanner(@FieldMap Map<String, Object> params);

    @POST("contentService/v1/News/appNewsList")
    @FormUrlEncoded
    Flowable<ConsultingBean> getAppNewsList(@FieldMap Map<String, Object> params);

    @POST("contentService/v1/News/appNewsRecommendList")
    @FormUrlEncoded
    Flowable<ConsultingBean> getRecommended(@FieldMap Map<String, Object> params);

    @POST("showKolimages")
    @FormUrlEncoded
    Flowable<KolimagesBean> getKolimages(@FieldMap Map<String, Object> params);

    @POST("showLike")
    @FormUrlEncoded
    Flowable<LikeBean> getLike(@FieldMap Map<String, Object> params);

    @POST("showBottom")
    @FormUrlEncoded
    Flowable<BottomBannerBean> getBottomBanner(@FieldMap Map<String, Object> params);

    @POST("showNews")
    @FormUrlEncoded
    Flowable<HeadLinesBean> getHeadLines(@FieldMap Map<String, Object> params);

    @POST("showNavigation")
    @FormUrlEncoded
    Flowable<NavigationBean> getBanner2(@FieldMap Map<String, Object> params);

    @POST("showHighOpinion")
    @FormUrlEncoded
    Flowable<HighOpinionBean> getHighOpinion(@FieldMap Map<String, Object> params);*/

    String baseUrl = "https://api.zhuge.com/";

    @POST("newhouse/api/v2/house_term/getshortcutentry")
    @FormUrlEncoded
    Flowable<HortBean> getsHortcuTenTry(@FieldMap Map<String, Object> params);

    @POST("newhouse/api/v2/sell_control/getsellterm")
    @FormUrlEncoded
    Flowable<SellTermBean> getSellTerm(@FieldMap Map<String, Object> params);

    @POST("newhouse/api/v2/house_term/getshortcutentrytwo")
    @FormUrlEncoded
    Flowable<CuTenTryTwoBean> getShortCuTenTryTwo(@FieldMap Map<String, Object> params);

    @POST("newhouse/api/v2/house/gethouselist")
    @FormUrlEncoded
    Flowable<HouseListBean> getHouseList(@FieldMap Map<String, Object> params);
}
